<?php

namespace App\Mail;

use App\Liuyan;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;

class SendMail extends Mailable
{
    use Queueable, SerializesModels;
    public $liuyan;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct(Liuyan $liuyan)
    {
        $this->liuyan=$liuyan;
        $this->subject='星晔玩具有限公司';
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->view('mail.index');
    }
}
